#ifndef __PORTDEF_H__
#define __PORTDEF_H__


#undef FULLSTEP
#undef HALFDRIVE

#define cbi(sfr,bit)	sfr &= ~(_BV(bit));
#define sbi(sfr,bit)	sfr |= bit;

/*******************************************************************/
typedef unsigned int	uint;
typedef unsigned int	boolean;
/*******************************************************************/

// PORTB

// 01		Leds
#define	RED			0
#define	GREEN		1

// 345		Motor enable
#define MOTOR_Y		3
#define MOTOR_X		4
#define MOTOR_Z		5

// PORTD

// 23		Control switches
#define LEFTSW	PD2
#define RIGHTSW	PD3

// 456		Endswitch ZYX
#define ENDX	PD4
#define ENDY	PD5
#define ENDZ	PD6

// PORTC

// 0123		Data
#define    A1		0
#define    A2		1
#define    A3		2
#define    A4		3

/*******************************************************************/

#define _OFF	0
#define	_ON		1

#endif
